<template>
  <view>
    <!-- <u-navbar :is-back="true" :is-fixed="true" title="黑名单详情"></u-navbar> -->
	<free-nav-bar showBack title="黑名单详情"></free-nav-bar>
    <view class="py-3 pl-3 pr-3 lineHight-2 font-14">
      <view>企业名称：崖州绿橙农业有限公司</view>
      <view>公用品牌名称：崖州绿橙</view>
      <view>产品名称：绿橙</view>
      <view>负责人：吕树</view>
      <view>手机号：165476389864</view>
      <view>拉黑原因：拉黑原因拉黑原因</view>
      <view>发布时间：2023.11.25 10:01:22</view>
    </view>
  </view>
</template>

<script>
import $H from "@/common/free-lib/request.js";
import freeNavBar from "@/components/free-ui/free-nav-bar.vue";
export default {
  components: {
    freeNavBar,
  },
  data() {
    return {
      time: undefined,
      title: undefined,
      richText: '<div><p style="color:red;">这是一段富文本内容</p></div>',
    };
  },
  onLoad(option) {
    console.log("id", option);
    this.getNotice(option.id);
  },
  computed: {
    richTextNodes() {
      return this.parseHTML(this.htmlContent);
    },
  },
  methods: {
    getNotice(id) {
      $H.get(
        "/basisInform/platformNotice/queryById",
        {
          id,
        },
        {}
      ).then((res) => {
        this.time = res.result.updateTime;
        this.richText = res.result.content;
        this.title = res.result.title;
      });
      $H.get(
        "/basisInform/platformNotice/upper/clickRead",
        {
          id,
        },
        {}
      );
    },
  },
};
</script>

<style>
</style>